package com.jeff.tianti.cms.service;

import com.jeff.tianti.cms.entity.Organization;
import com.jeff.tianti.cms.dao.OrganizationDao;
import com.jeff.tianti.cms.dto.OrganizationQueryDTO;
import com.jeff.tianti.common.service.CommonService;
import com.jeff.tianti.common.entity.PageModel;
import org.springframework.stereotype.Service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
/**
 * @author NOW_GO
 * @desc OrganizationService类 
 * @date 2019-07-12
 */
@Service
public class OrganizationService extends CommonService< Organization,String >  {

    @Autowired
    private OrganizationDao organizationDao;

    @Autowired
    public void setOrganizationDao(OrganizationDao organizationDao){
      super.setCommonDao(organizationDao);
    }

    public PageModel<Organization> queryOrganizationPage(OrganizationQueryDTO organizationQueryDTO){
           return this.organizationDao.queryOrganizationPage(organizationQueryDTO);
    }

    public List<Organization> queryOrganizationList(OrganizationQueryDTO organizationQueryDTO){
           return this.organizationDao.queryOrganizationList(organizationQueryDTO);
    }


}